<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8"/>
		<title>this指向</title>
	</head>
	<body>
		<script type="text/javascript">
		//this
/* 		var student = {
			name:"子明",
			like:function(){
				console.log(this);
				console.log(this.name);
				console.log("喜欢吃烧鸡");
			}
		}

		var fn = student.like;

		var fn1 = function(){
				console.log(this);
				console.log(this.name);
				console.log("喜欢吃烧鸡");
			}
		student.like();//this-->student
		fn();//    this-->window
 */
		
			//arguments
			/* var student = {
				name:"子明",
				like:function(a,b,c,d){
					console.log(this);
					console.log(this.name);
					console.log("喜欢吃烧鸡");
					console.log(arguments.callee);
					if(arguments[0]){
						arguments[0]=100;
					}
					console.log(arguments);
					console.log(a);
				}
			}
 */
		</script>
	</body>
</html>